﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Api.Common
{
    /// <summary>
    /// 最總可以得到的數據如下
    /// 對nestable.js 所需要的json數據进行封装
    /// [{"id":1},{"id":2},{"id":3,"children":[{"id":4},{"id":5}]}]
    /// </summary>
    public class NestableSort
    {
        public int id { get; set; }
        public List<NestableSort> children { get; set; }
    }

    /// <summary>
    /// 可以支持图片的排序，用于在页面中输出html代码
    /// </summary>
    public class NestableSortInput
    {
        public int id { get; set; }
        public string NameOrUrl { get; set; }
        public bool IsUrl { get; set; } = false;
        public List<NestableSortInput> Children { get; set; }
    }
}
